/**
 * ------------------------------------------------------------------
 *Copyright reserved by Emin Technology
 *------------------------------------------------------------------

 *PROJECT:		eminview-sales
 *FILE:			Entity.java
 *AUTHOR:		Senon Ye
 *DATE CREATION:9 Aug 2011
 *DESCRIPTION:	Entity

 *==========================================================
 * VERSION CONTROL
 *Number – Date – Author – SVN – Description
 *01 –  9 Aug 2011 – senon ye – xxx – Entity
 *-------------------------------------------------------------------------------------------------------
 */

package top.jle.jpa.basic.entities;

import lombok.Getter;

import java.io.Serializable;

/**
 * 所有实体必须实现的接口
 * 
 * @author jim
 */
public interface Entity extends Serializable {

	@Getter
	enum PropertyMapping{
		ID("id","id");
		private final String property;
		private final String column;
		PropertyMapping(String property, String column) {
			this.property = property;
			this.column = column;
		}

	}
	String COLUMN_ID = "id";

	String PROP_ID = "id";

	/**
	 * @return the id
	 */
	Long getId();
	
	void setId(Long id);
}
